package org.wangnian.validationdemo.model;

import lombok.Data;
import org.wangnian.validationdemo.groups.user.InsertUser;
import org.wangnian.validationdemo.groups.user.UpdateUser;

import javax.validation.constraints.NotBlank;
import java.util.regex.Pattern;

@Data
public class UserDetails {

    @NotBlank(message = "用户名不能为空",groups = {InsertUser.class})
    private String username;


}
